package cn.lp207663436.dynamicmanager.pojo.request;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;

/**
 * <p>
 * 添加自定义数据源表
 * </p>
 *
 * @author luopeng
 * @since 2023-07-04
 */
@Data
@ApiModel(value="添加CustomDataSourcePropertyEntity对象", description="添加自定义数据源表")
public class AddCustomDataSourcePropertyRequest implements Serializable {


    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "连接池名称(只是一个名称标识)</br> 默认是配置文件上的名称")
    private String poolName;

    @ApiModelProperty(value = "连接池类型，如果不设置自动查找 Druid > HikariCp")
    private String type;

    @ApiModelProperty(value = "JDBC driver")
    private String driverClassName;

    @ApiModelProperty(value = "JDBC url 地址")
    private String url;

    @ApiModelProperty(value = "JDBC 用户名")
    private String username;

    @ApiModelProperty(value = "JDBC 密码")
    private String password;

    @ApiModelProperty(value = "jndi数据源名称(设置即表示启用)")
    private String jndiName;

    @ApiModelProperty(value = "是否启用seata")
    private Boolean seata;

    @ApiModelProperty(value = "是否启用p6spy")
    private Boolean p6spy;

    @ApiModelProperty(value = "lazy init datasource")
    private Boolean lazy;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}
